package iss.java;

/**
 * Created by wenke on 2016/9/16.
 */
class InheritanceThread extends Thread{
    private int number=0;
    public InheritanceThread(int  number){
        this.number=number/10;
    }
    public void run(){
        while(true){
            System.out.println(number);
        }
    }
}
public class Main_A {
    public static void main(String[] args) {
        // TODO: Implement a multithreaded test case against requirement A.
        InheritanceThread thread1=new InheritanceThread(10);
        InheritanceThread thread2=new InheritanceThread(20);
        thread1.start();
        thread2.start();
    }
}
